home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Bank smakow / BankSmakow.air / BankSmakow.swf / scripts / air / update / events / DownloadErrorEvent.as next >
Text File  |  2009-12-16  |  945b  |  31 lines

  1. package air.update.events
  2. {
  3.    import flash.events.ErrorEvent;
  4.    import flash.events.Event;
  5.    
  6.    public class DownloadErrorEvent extends ErrorEvent
  7.    {
  8.       
  9.       public static const DOWNLOAD_ERROR:String = "downloadError";
  10.        
  11.       
  12.       public var subErrorID:int = 0;
  13.       
  14.       public function DownloadErrorEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:String = "", param5:int = 0, param6:int = 0)
  15.       {
  16.          super(param1,param2,param3,param4,param5);
  17.          this.subErrorID = param6;
  18.       }
  19.       
  20.       override public function toString() : String
  21.       {
  22.          return "[DownloadErrorEvent (type=" + type + " text=" + text + " id=" + errorID + " subErrorID=" + subErrorID + ")]";
  23.       }
  24.       
  25.       override public function clone() : Event
  26.       {
  27.          return new DownloadErrorEvent(type,bubbles,cancelable,text,errorID,subErrorID);
  28.       }
  29.    }
  30. }
  31.